package com.qiangesoft.pay.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 微信支付配置
 *
 * @author qiangesoft
 * @date 2024-02-23
 */
@Data
@Component
@EnableConfigurationProperties(value = WxpayProperties.class)
@ConfigurationProperties(prefix = "wxpay")
public class WxpayProperties {

    /**
     * appid
     */
    private String appId;

    /**
     * 商户id
     */
    private String mchId;

    /**
     * 商户key
     */
    private String key;

    /**
     * 安全证书存放位置
     */
    private String certPath;

    /**
     * 微信支付结果通知的url
     */
    private String notifyUrl;

    /**
     * 交易方式
     */
    private String tradeType;
}
